import { Modal} from 'antd';
const { confirm } = Modal;
const antd = {};
antd.delect =()=>{
    return new Promise(function(resolve,reject){
        confirm({
            title: '确认删除？',
            content: '请谨慎操作',
            okText: '删除',
            okType: 'danger',
            cancelText: '取消',
            onOk() {
                resolve('yes');
            }
        }); 
    })
    
}
export default antd;